// 引用公用颜色
@import "color.less";
@import "size.less";

/* 菜单隐藏 beign */
.hide-sidebar {
  .sidebar {
    width: 64px;
    .logo-box {
      >span {
        display: none;
      }
    }
  }
  .el-header,
  .tags{
    padding-left: 64px !important;
  }
  .content-box {
    padding-left: 64px !important;
  }
}
/* 菜单隐藏 end */

/* wrap begin*/
.header-tags {
  position: fixed;
  z-index: 20;
  width: 100%;
  height: @head-height;
  background-color: #0f1920;
  .el-header,
  .tags{
    padding-left: 200px;
    transition: padding-left .3s;
  }
}
.content-box {
  position: relative;
  // https://www.jianshu.com/p/81820d7e223e
  height: ~"calc(100vh - @{head-height})";
  padding-left: 200px;
  margin-top: @head-height;
  transition: padding-left .3s;
}
/* wrap end*/

/* sidebar begin */
.sidebar {
  position: fixed;
  display: block;
  top: 0px;
  left: 0;
  bottom: 0;
  width: 200px;
  z-index: 21;
  background-color: #15212B;
  transition: width .3s;
  .logo-box {
    position: relative;
    z-index: 1;
    height: @logo-height;
    line-height: @logo-height;
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    >img{
      float: left;
      margin: 10px;
      height: ~"calc(@{logo-height} - 20px)";
    }
    >span{
      color: #fff;
      font-weight: 600;
    }
  }
  >.el-icon-s-fold,
  >.el-icon-s-unfold {
    position: absolute;
    color: #c0c4cc;
    right: -40px;
    top: 15px;
    font-size: 28px;
  }
}
.el-menu {
  border: none;
  [class^=el-icon-] {
    margin-right: 0;
    color: inherit;
  }
}
.menu-scroll {
  height: ~"calc(100vh - @{logo-height})";
  .el-scrollbar {
    height: 100%;
  }
  .el-scrollbar__wrap {
    overflow-x: hidden;
  }
}
/* sidebar end */

/* header  begin*/
.header {
  height: @head-height-user;
  line-height: @head-height-user;
  font-size: .9rem;
  color: #c0c4cc;
  .header-user {
    float: right;
    font-size: inherit;
    position: relative;
    .el-dropdown {
      color: inherit;
    }
    .user-pic {
      position: relative;
      top: 12px;
      left: 10px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
    }
  }
}
/* header end*/

/* tags begin */
.tags {
  position: relative;
  height: @head-height-tag;
  line-height: @head-height-tag;
  font-size: .8rem;
  background-color: #ffffff;
  box-shadow: 0px 0px 4px 0px rgba(187, 187, 187, 0.5);
}
.tags-scroll {
  display: inline-block;
  width: ~"calc(100% - @{head-height-tag})";
}
.tags-li {
  position: relative;
  display: inline-block;
  padding: 0px 16px;
  color: #999999;
  &.active {
    color: #333333;
  }
  &:hover .el-icon-close {
    display: inline-block;
  }
  .el-icon-close {
    position: absolute;
    display: none;
    font-weight: bold;
    color: #999999;
    margin-left: 4px;
    top: 11px;
    cursor: pointer;
    &:hover {
      color: #757575;
    }
  }
}
.tags-btn {
  float: right;
  width: 32px;
  height: 100%;
  text-align: center;
  border-left: 1px solid #dddddd;
}
/* tags end */
